package com.cssl.domain.dto;

import java.util.List;

public class CommonOrderDto {
    Integer which; //用于判断 2,直购,3,购物车,1发起团购,0,拼团
    Integer goodsId; //商品id
    Integer number;//商品数量
    Integer brandId;//品牌id
    Integer productId;//商品规格id
    Integer addressId; // 地址id
    Integer couponId; //优惠券id
    String message; //留言
    Integer groupId;//团购id //发起拼团时为团购规则id,拼团时为团购id




    public CommonOrderDto(Integer which, Integer goodsId, Integer number, Integer brandId, Integer productId, Integer addressId, Integer couponId, String message, Integer groupId) {
        this.which = which;
        this.goodsId = goodsId;
        this.number = number;
        this.brandId = brandId;
        this.productId = productId;
        this.addressId = addressId;
        this.couponId = couponId;
        this.message = message;
        this.groupId = groupId;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getCouponId() {
        return couponId;
    }

    public void setCouponId(Integer couponId) {
        this.couponId = couponId;
    }



    public CommonOrderDto() {
    }

    public CommonOrderDto(Integer which, Integer goodsId, Integer number, Integer brandId, Integer productId, Integer addressId, Integer couponId, String message) {
        this.which = which;
        this.goodsId = goodsId;
        this.number = number;
        this.brandId = brandId;
        this.productId = productId;
        this.addressId = addressId;
        this.couponId = couponId;
        this.message = message;
    }

    public Integer getWhich() {

        return which;
    }

    public void setWhich(Integer which) {
        this.which = which;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "CommonOrderDto{" +
                "which=" + which +
                ", goodsId=" + goodsId +
                ", number=" + number +
                ", brandId=" + brandId +
                ", productId=" + productId +
                '}';
    }
}
